<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    p {
      color: red;
    }

    .p1 {
      font-size: 40px;
      color: green;
    }

    #p1 {
      background-color: antiquewhite;
      color: blue;
    }


    /* 10 */
    [id="box"] {
      color: blue;
    }

    /* 10 */
    .box {
      color: red;
    }
  </style>
</head>

<body>

  <p class="p1" id="p1" style="color: orangered;">this is tag p</p>

  <div class="box" id="box">this is tag div</div>

</body>

</html>